package cn.hd.service;

import cn.hd.entity.AuthRealName;
import cn.hd.entity.Reallyname;
import cn.hd.entity.User;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public interface ReallynameService {

    public int addReallyname(Reallyname reallyname);

    public Reallyname selectByUserIdRealname(long userid);

    public int passAuthRealName(long authrealid);

    public int failAuthRealName(long authrealid);

    public PageInfo<AuthRealName> selectAuthRealName(int pagenum, Map map, int pagesize);

    public AuthRealName selectByIdAuthRealName(long authrealid);

    //修改角色
    public int updaterole(long id);

    //根据真是i姓名查询id
    public Reallyname selectByUname(String uname);

}
